package com.suning.sawp.po.precharge;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 
 * 序列号生成器<br> 
 * 〈功能详细描述〉
 *
 * @author 12061818
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@Document(collection = "Sequence")
public class Sequence implements Serializable {

    /**
     */
    private static final long serialVersionUID = -8191620582210837931L;

    @Id
    private String id;
    
    /**
     * 序列号所属类别
     */
    private String key;
    
    /**
     * 当前序列号值
     */
    private long value;

    public Sequence() {
        
    }
    
    public Sequence(String key, long value) {
        this.key = key;
        this.value = value;
    }
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public long getValue() {
        return value;
    }

    public void setValue(long value) {
        this.value = value;
    }
    
    public interface Attributes {
        /**
         * 序列号所属类别
         */
        String KEY = "key";
        /**
         * 当前序列号值
         */
        String VALUE = "value";
    }
    
    /**
     * 目前序列器类型
     */
    public interface KeyTypes {
        /**
         * 店员用户ID
         */
        String STORE_MAN_USER_ID = "storeManId";
        
        /**
         * 云导购ID, 适配以前数据
         */
        String CLOUD_GUIDE_ID = "storeManUserId";
        
        /**
         * 临时员工工号
         */
        String TEMP_STAFF_ID = "tempStaffId";
        
        /**
         * 微信带参数二维码场景值，sceneId
         */
        String SCENE_ID = "sceneId";
    }
}
